package com.esdk.sql.datasource;

import javax.sql.DataSource;
import java.io.Closeable;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

public interface IConnectionPool extends Closeable{
  Connection getConnection();
  Connection getCurrentConnection();
  Connection getCurrentConnection(Integer expiredSec);
  Connection getConnection(Integer expireSeconds);
  DataSource getDataSource();
  void setDatasource(DataSource ds);
  void closeConnection();
  void printStatus();
  List<String> getCallers();
  List<String> getAllCallStacks();
}
